package com.example.gulimall.ware;

import com.example.common.constant.BeanScanConstant;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@EnableRabbit
@EnableFeignClients
@EnableDiscoveryClient
@SpringBootApplication(scanBasePackages =
        {
                BeanScanConstant.MP_PATH,
                BeanScanConstant.WARE_SELF,
                BeanScanConstant.POLL_PATH,
                BeanScanConstant.FEIGN_PATH,
                BeanScanConstant.SENTINEL_PATH,
                BeanScanConstant.MQ_WEB_SERVICE,
                BeanScanConstant.RABBIT_WARE_PATH,
                BeanScanConstant.RABBIT_COMMON_PATH
        }
)
@MapperScan(basePackages= {
        BeanScanConstant.MQ_WEB_DAO,
        BeanScanConstant.WARE_SELF_DAO
})
public class GulimallWareApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallWareApplication.class, args);
    }

}
